<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交网站动态列表</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4263eb;
            --primary-dark: #334195;
            --primary-light: #eef1ff;
            --success: #28a745;
            --danger: #e74c3c;
            --warning: #f39c12;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --dark: #212529;
            --white: #ffffff;
            --shadow: 0 2px 10px rgba(0,0,0,0.07);
            --shadow-hover: 0 5px 15px rgba(0,0,0,0.1);
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: #f8f9fa;
            color: var(--dark);
            line-height: 1.6;
            padding-top: 20px;
        }
        
        .container {
            max-width: 900px;
        }
        
        .page-header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .page-header h1 {
            color: var(--primary);
            font-weight: 700;
        }
        
        .feed-filters {
            background: var(--white);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 25px;
            box-shadow: var(--shadow);
        }
        
        .filter-tabs {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding-bottom: 5px;
        }
        
        .filter-tab {
            padding: 6px 15px;
            border-radius: 20px;
            background: var(--light-gray);
            border: none;
            color: var(--gray);
            font-size: 0.9rem;
            white-space: nowrap;
            transition: var(--transition);
        }
        
        .filter-tab.active {
            background: var(--primary);
            color: var(--white);
        }
        
        .filter-tab:hover:not(.active) {
            background: #d0d7e3;
        }
        
        .post-card {
            background: var(--white);
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            overflow: hidden;
        }
        
        .post-card:hover {
            box-shadow: var(--shadow-hover);
        }
        
        .post-header {
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .post-author {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.2rem;
        }
        
        .author-info {
            line-height: 1.3;
        }
        
        .author-name {
            font-weight: 600;
            color: var(--dark);
        }
        
        .post-time {
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .post-menu {
            background: none;
            border: none;
            color: var(--gray);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
        }
        
        .post-menu:hover {
            background: var(--light-gray);
        }
        
        .post-content {
            padding: 15px 20px;
        }
        
        .post-text {
            margin-bottom: 15px;
            line-height: 1.7;
        }
        
        .post-images {
            margin-bottom: 15px;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .single-image {
            width: 100%;
            max-height: 500px;
            overflow: hidden;
        }
        
        .multiple-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 5px;
        }
        
        .image-item {
            width: 100%;
            height: 200px;
            overflow: hidden;
            position: relative;
            background-color: #f1f3f5;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray);
            font-size: 2rem;
        }
        
        .image-item img, .single-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .post-card:hover .image-item img,
        .post-card:hover .single-image img {
            transform: scale(1.02);
        }
        
        .image-count {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(0,0,0,0.6);
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
        }
        
        .post-meta {
            display: flex;
            justify-content: space-between;
            padding: 0 20px 10px;
            font-size: 0.85rem;
            color: var(--gray);
            border-bottom: 1px solid var(--light-gray);
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .post-actions {
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: none;
            border: none;
            color: var(--gray);
            font-size: 0.9rem;
            padding: 8px 15px;
            border-radius: 6px;
            transition: var(--transition);
            flex: 1;
            justify-content: center;
        }
        
        .action-btn:hover {
            background: var(--primary-light);
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.bookmarked {
            color: var(--warning);
        }
        
        .comments-section {
            padding: 0 20px 15px;
        }
        
        .comment-input {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .comment-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--primary-light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }
        
        .comment-box {
            flex: 1;
        }
        
        .comment-input-field {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid var(--light-gray);
            border-radius: 20px;
            font-size: 0.9rem;
            resize: none;
            height: 40px;
            transition: var(--transition);
        }
        
        .comment-input-field:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(66, 99, 235, 0.2);
        }
        
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .comment-item {
            display: flex;
            gap: 10px;
        }
        
        .comment-content {
            flex: 1;
            background: var(--light-gray);
            padding: 10px 15px;
            border-radius: 18px;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .comment-author {
            font-weight: 600;
            font-size: 0.85rem;
        }
        
        .comment-time {
            font-size: 0.75rem;
            color: var(--gray);
        }
        
        .comment-text {
            font-size: 0.9rem;
            margin-bottom: 5px;
        }
        
        .comment-actions {
            display: flex;
            gap: 15px;
            font-size: 0.8rem;
        }
        
        .comment-action {
            color: var(--gray);
            text-decoration: none;
            transition: var(--transition);
            cursor: pointer;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .view-more-comments {
            color: var(--primary);
            background: none;
            border: none;
            padding: 5px 0;
            font-size: 0.9rem;
            cursor: pointer;
            text-align: left;
        }
        
        .date-section {
            text-align: center;
            margin: 25px 0;
        }
        
        .date-label {
            background: var(--primary-light);
            color: var(--primary);
            padding: 3px 15px;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .match-author-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 5px 12px;
            border-radius: 4px;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            margin-left: 10px;
        }
        
        .match-author-btn:hover {
            background: var(--primary-dark);
        }
        
        .match-author-btn.requested {
            background: var(--gray);
            cursor: not-allowed;
        }
        
        /* 评论回复相关样式 */
        .replies-list {
            margin-top: 10px;
            margin-left: 46px; /* 头像宽度+间距 */
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .reply-item {
            display: flex;
            gap: 10px;
        }
        
        .reply-content {
            flex: 1;
            background: #e2e8f0;
            padding: 8px 12px;
            border-radius: 16px;
        }
        
        .reply-input {
            margin-top: 10px;
            display: none;
        }
        
        .reply-input.active {
            display: flex;
        }
        
        .reply-author {
            color: var(--primary);
            font-weight: 600;
        }
        
        /* 不同布局样式 */
        .standard-layout .post-card {
            border-radius: 12px;
        }
        
        .compact-layout .post-card {
            border-radius: 8px;
        }
        
        .compact-layout .post-content {
            padding: 12px 15px;
        }
        
        .compact-layout .post-text {
            font-size: 0.95rem;
            margin-bottom: 10px;
        }
        
        .compact-layout .image-item {
            height: 150px;
        }
        
        .social-card-layout .post-card {
            border-radius: 18px;
        }
        
        .social-card-layout .post-header {
            padding: 18px 20px;
        }
        
        .social-card-layout .post-actions {
            padding: 12px 0;
            border-top: 1px solid var(--light-gray);
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .post-actions {
                flex-wrap: wrap;
            }
            
            .action-btn {
                flex: 1 0 45%;
                margin-bottom: 5px;
            }
            
            .multiple-images {
                grid-template-columns: 1fr;
            }
            
            .image-item {
                height: 200px;
            }
            
            .replies-list {
                margin-left: 36px;
            }
        }
        
        @media (max-width: 576px) {
            .action-btn {
                flex: 1 0 100%;
                justify-content: center;
            }
            
            .post-meta {
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .meta-item {
                flex: 1 0 45%;
            }
            
            .replies-list {
                margin-left: 0;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="page-header">
            <h1>社交动态列表</h1>
            <p class="text-muted">浏览最新动态，参与互动交流</p>
        </div>
        
        <div class="feed-filters">
            <div class="filter-tabs">
                <button class="filter-tab active">全部动态</button>
                <button class="filter-tab">关注的人</button>
                <button class="filter-tab">热门推荐</button>
                <button class="filter-tab">附近动态</button>
                <button class="filter-tab">仅图片</button>
            </div>
        </div>
        
        <!-- 今日动态 -->
        <div class="date-section">
            <span class="date-label">今日</span>
        </div>
        
        <!-- 标准布局动态 - 单张图片 -->
        <div class="standard-layout">
            <div class="post-card">
                <div class="post-header">
                    <div class="post-author">
                        <div class="author-avatar">
                            <i class="fas fa-hiking"></i>
                        </div>
                        <div class="author-info">
                            <div class="d-flex align-items-center">
                                <span class="author-name">旅行家小明</span>
                                <button class="match-author-btn" data-author="旅行家小明">约会作者</button>
                            </div>
                            <span class="post-time">2小时前</span>
                        </div>
                    </div>
                    <button class="post-menu">
                        <i class="fas fa-ellipsis-h"></i>
                    </button>
                </div>
                
                <div class="post-content">
                    <div class="post-text">
                        今天去了城市周边的山区徒步，发现了这个隐藏的瀑布！这里的空气太清新了，完全远离城市喧嚣。推荐给所有喜欢大自然的朋友，真的值得一去！
                    </div>
                    
                    <div class="post-images">
                        <div class="single-image">
                            <i class="fas fa-image"></i>
                        </div>
                    </div>
                </div>
                
                <div class="post-meta">
                    <div class="meta-item">
                        <i class="far fa-eye"></i>
                        <span>浏览 2.3k</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-heart"></i>
                        <span>意向 156</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-comment"></i>
                        <span>评论 32</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-share-square"></i>
                        <span>转发 18</span>
                    </div>
                </div>
                
                <div class="post-actions">
                    <button class="action-btn liked">
                        <i class="fas fa-heart"></i>
                        <span>点赞 (245)</span>
                    </button>
                    <button class="action-btn">
                        <i class="far fa-comment"></i>
                        <span>评论</span>
                    </button>
                    <button class="action-btn">
                        <i class="far fa-share-square"></i>
                        <span>转发</span>
                    </button>
                    <button class="action-btn bookmarked">
                        <i class="fas fa-bookmark"></i>
                        <span>收藏</span>
                    </button>
                </div>
                
                <div class="comments-section">
                    <div class="comment-input">
                        <div class="comment-avatar">
                            <i class="fas fa-user"></i>
                        </div>
                        <div class="comment-box">
                            <textarea class="comment-input-field" placeholder="发表评论..."></textarea>
                        </div>
                    </div>
                    
                    <div class="comments-list">
                        <div class="comment-item">
                            <div class="comment-avatar">
                                <i class="fas fa-user"></i>
                            </div>
                            <div class="comment-content">
                                <div class="comment-header">
                                    <span class="comment-author">户外爱好者</span>
                                    <span class="comment-time">1小时前</span>
                                </div>
                                <div class="comment-text">
                                    这个地方看起来太棒了！请问具体位置在哪里呀？
                                </div>
                                <div class="comment-actions">
                                    <span class="comment-action reply-btn">回复</span>
                                    <span class="comment-action like-comment">点赞</span>
                                </div>
                                
                                <!-- 回复输入框 -->
                                <div class="comment-input reply-input">
                                    <div class="comment-avatar">
                                        <i class="fas fa-user"></i>
                                    </div>
                                    <div class="comment-box">
                                        <textarea class="comment-input-field" placeholder="回复 @户外爱好者..."></textarea>
                                    </div>
                                </div>
                                
                                <!-- 回复列表 -->
                                <div class="replies-list">
                                    <div class="reply-item">
                                        <div class="comment-avatar">
                                            <i class="fas fa-hiking"></i>
                                        </div>
                                        <div class="reply-content">
                                            <div class="comment-header">
                                                <span class="comment-author">旅行家小明</span>
                                                <span class="comment-time">45分钟前</span>
                                            </div>
                                            <div class="comment-text">
                                                <span class="reply-author">@户外爱好者</span> 就在城西的青峰山，导航到青峰山森林公园即可
                                            </div>
                                            <div class="comment-actions">
                                                <span class="comment-action reply-btn">回复</span>
                                                <span class="comment-action like-comment">点赞 (3)</span>
                                            </div>
                                            
                                            <!-- 二级回复输入框 -->
                                            <div class="comment-input reply-input">
                                                <div class="comment-avatar">
                                                    <i class="fas fa-user"></i>
                                                </div>
                                                <div class="comment-box">
                                                    <textarea class="comment-input-field" placeholder="回复 @旅行家小明..."></textarea>
                                                </div>
                                            </div>
                                            
                                            <!-- 二级回复 -->
                                            <div class="replies-list">
                                                <div class="reply-item">
                                                    <div class="comment-avatar">
                                                        <i class="fas fa-user"></i>
                                                    </div>
                                                    <div class="reply-content">
                                                        <div class="comment-header">
                                                            <span class="comment-author">户外爱好者</span>
                                                            <span class="comment-time">30分钟前</span>
                                                        </div>
                                                        <div class="comment-text">
                                                            <span class="reply-author">@旅行家小明</span> 谢谢你！请问徒步难度大吗？适合带孩子去吗？
                                                        </div>
                                                        <div class="comment-actions">
                                                            <span class="comment-action reply-btn">回复</span>
                                                            <span class="comment-action like-comment">点赞 (2)</span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <div class="reply-item">
                                        <div class="comment-avatar">
                                            <i class="fas fa-user"></i>
                                        </div>
                                        <div class="reply-content">
                                            <div class="comment-header">
                                                <span class="comment-author">山野旅行者</span>
                                                <span class="comment-time">30分钟前</span>
                                            </div>
                                            <div class="comment-text">
                                                <span class="reply-author">@户外爱好者</span> 我上周刚去过，景色确实不错，路还算好走
                                            </div>
                                            <div class="comment-actions">
                                                <span class="comment-action reply-btn">回复</span>
                                                <span class="comment-action like-comment">点赞</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <button class="view-more-comments">查看全部32条评论</button>
                </div>
            </div>
        </div>
        
        <!-- 紧凑布局动态 - 多张图片 -->
        <div class="compact-layout">
            <div class="post-card">
                <div class="post-header">
                    <div class="post-author">
                        <div class="author-avatar">
                            <i class="fas fa-utensils"></i>
                        </div>
                        <div class="author-info">
                            <div class="d-flex align-items-center">
                                <span class="author-name">美食家小雨</span>
                                <button class="match-author-btn" data-author="美食家小雨">约会作者</button>
                            </div>
                            <span class="post-time">5小时前</span>
                        </div>
                    </div>
                    <button class="post-menu">
                        <i class="fas fa-ellipsis-h"></i>
                    </button>
                </div>
                
                <div class="post-content">
                    <div class="post-text">
                        周末在家尝试做了几道新菜式：番茄牛腩、蒜蓉西兰花和虾仁蒸水蛋。味道还不错，分享给大家~ #周末美食 #家常菜
                    </div>
                    
                    <div class="post-images">
                        <div class="multiple-images">
                            <div class="image-item">
                                <i class="fas fa-utensils"></i>
                            </div>
                            <div class="image-item">
                                <i class="fas fa-pepper-hot"></i>
                            </div>
                            <div class="image-item">
                                <i class="fas fa-egg"></i>
                                <div class="image-count">+1</div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="post-meta">
                    <div class="meta-item">
                        <i class="far fa-eye"></i>
                        <span>浏览 1.8k</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-heart"></i>
                        <span>意向 98</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-comment"></i>
                        <span>评论 45</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-share-square"></i>
                        <span>转发 23</span>
                    </div>
                </div>
                
                <div class="post-actions">
                    <button class="action-btn">
                        <i class="far fa-heart"></i>
                        <span>点赞 (176)</span>
                    </button>
                    <button class="action-btn">
                        <i class="far fa-comment"></i>
                        <span>评论</span>
                    </button>
                    <button class="action-btn">
                        <i class="far fa-share-square"></i>
                        <span>转发</span>
                    </button>
                    <button class="action-btn">
                        <i class="far fa-bookmark"></i>
                        <span>收藏</span>
                    </button>
                </div>
                
                <div class="comments-section">
                    <div class="comment-input">
                        <div class="comment-avatar">
                            <i class="fas fa-user"></i>
                        </div>
                        <div class="comment-box">
                            <textarea class="comment-input-field" placeholder="发表评论..."></textarea>
                        </div>
                    </div>
                    
                    <div class="comments-list">
                        <div class="comment-item">
                            <div class="comment-avatar">
                                <i class="fas fa-user"></i>
                            </div>
                            <div class="comment-content">
                                <div class="comment-header">
                                    <span class="comment-author">吃货一枚</span>
                                    <span class="comment-time">4小时前</span>
                                </div>
                                <div class="comment-text">
                                    看起来太美味了！能分享一下番茄牛腩的做法吗？
                                </div>
                                <div class="comment-actions">
                                    <span class="comment-action reply-btn">回复</span>
                                    <span class="comment-action like-comment">点赞 (12)</span>
                                </div>
                                
                                <!-- 回复输入框 -->
                                <div class="comment-input reply-input">
                                    <div class="comment-avatar">
                                        <i class="fas fa-user"></i>
                                    </div>
                                    <div class="comment-box">
                                        <textarea class="comment-input-field" placeholder="回复 @吃货一枚..."></textarea>
                                    </div>
                                </div>
                                
                                <!-- 回复列表 -->
                                <div class="replies-list">
                                    <div class="reply-item">
                                        <div class="comment-avatar">
                                            <i class="fas fa-utensils"></i>
                                        </div>
                                        <div class="reply-content">
                                            <div class="comment-header">
                                                <span class="comment-author">美食家小雨</span>
                                                <span class="comment-time">3小时前</span>
                                            </div>
                                            <div class="comment-text">
                                                <span class="reply-author">@吃货一枚</span> 当然可以！牛腩先焯水，然后用热油炒香姜片和葱段，加生抽、老抽、冰糖翻炒，再加入热水没过牛腩，小火炖1.5小时，最后加入番茄再炖30分钟就可以了
                                            </div>
                                            <div class="comment-actions">
                                                <span class="comment-action reply-btn">回复</span>
                                                <span class="comment-action like-comment">点赞 (8)</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <button class="view-more-comments">查看全部45条评论</button>
                </div>
            </div>
        </div>
        
        <!-- 社交卡片布局动态 - 无图片 -->
        <div class="social-card-layout">
            <div class="post-card">
                <div class="post-header">
                    <div class="post-author">
                        <div class="author-avatar">
                            <i class="fas fa-laptop-code"></i>
                        </div>
                        <div class="author-info">
                            <div class="d-flex align-items-center">
                                <span class="author-name">科技达人</span>
                                <button class="match-author-btn" data-author="科技达人">约会作者</button>
                            </div>
                            <span class="post-time">昨天 20:35</span>
                        </div>
                    </div>
                    <button class="post-menu">
                        <i class="fas fa-ellipsis-h"></i>
                    </button>
                </div>
                
                <div class="post-content">
                    <div class="post-text">
                        刚刚参加完科技峰会回来，有几个关于人工智能发展的观点想和大家分享：
                        1. 生成式AI将在未来两年内彻底改变内容创作行业
                        2. 大模型的效率和能耗问题将成为下一个技术突破点
                        3. AI伦理和监管框架的建立比技术进步更迫切
                        
                        大家对AI的未来发展有什么看法？欢迎讨论！
                    </div>
                </div>
                
                <div class="post-meta">
                    <div class="meta-item">
                        <i class="far fa-eye"></i>
                        <span>浏览 3.5k</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-heart"></i>
                        <span>意向 210</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-comment"></i>
                        <span>评论 89</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-share-square"></i>
                        <span>转发 56</span>
                    </div>
                </div>
                
                <div class="post-actions">
                    <button class="action-btn liked">
                        <i class="fas fa-heart"></i>
                        <span>点赞 (328)</span>
                    </button>
                    <button class="action-btn">
                        <i class="far fa-comment"></i>
                        <span>评论</span>
                    </button>
                    <button class="action-btn">
                        <i class="far fa-share-square"></i>
                        <span>转发</span>
                    </button>
                    <button class="action-btn bookmarked">
                        <i class="fas fa-bookmark"></i>
                        <span>收藏</span>
                    </button>
                </div>
                
                <div class="comments-section">
                    <div class="comment-input">
                        <div class="comment-avatar">
                            <i class="fas fa-user"></i>
                        </div>
                        <div class="comment-box">
                            <textarea class="comment-input-field" placeholder="发表评论..."></textarea>
                        </div>
                    </div>
                    
                    <div class="comments-list">
                        <div class="comment-item">
                            <div class="comment-avatar">
                                <i class="fas fa-user"></i>
                            </div>
                            <div class="comment-content">
                                <div class="comment-header">
                                    <span class="comment-author">程序员小张</span>
                                    <span class="comment-time">昨天 21:10</span>
                                </div>
                                <div class="comment-text">
                                    非常同意第三点，现在很多AI应用已经触及伦理边界，但相应的监管还很滞后
                                </div>
                                <div class="comment-actions">
                                    <span class="comment-action reply-btn">回复</span>
                                    <span class="comment-action like-comment">点赞 (34)</span>
                                </div>
                                
                                <!-- 回复列表 -->
                                <div class="replies-list">
                                    <div class="reply-item">
                                        <div class="comment-avatar">
                                            <i class="fas fa-laptop-code"></i>
                                        </div>
                                        <div class="reply-content">
                                            <div class="comment-header">
                                                <span class="comment-author">科技达人</span>
                                                <span class="comment-time">昨天 21:45</span>
                                            </div>
                                            <div class="comment-text">
                                                <span class="reply-author">@程序员小张</span> 是的，这也是峰会上讨论最热烈的话题之一，很多专家都呼吁建立全球统一的AI伦理标准
                                            </div>
                                            <div class="comment-actions">
                                                <span class="comment-action reply-btn">回复</span>
                                                <span class="comment-action like-comment">点赞 (15)</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="comment-item">
                            <div class="comment-avatar">
                                <i class="fas fa-user"></i>
                            </div>
                            <div class="comment-content">
                                <div class="comment-header">
                                    <span class="comment-author">未来思考者</span>
                                    <span class="comment-time">昨天 22:05</span>
                                </div>
                                <div class="comment-text">
                                    我觉得AI会在医疗领域有重大突破，特别是在疾病早期诊断方面
                                </div>
                                <div class="comment-actions">
                                    <span class="comment-action reply-btn">回复</span>
                                    <span class="comment-action like-comment">点赞 (19)</span>
                                </div>
                                
                                <!-- 回复列表 -->
                                <div class="replies-list">
                                    <div class="reply-item">
                                        <div class="comment-avatar">
                                            <i class="fas fa-user"></i>
                                        </div>
                                        <div class="reply-content">
                                            <div class="comment-header">
                                                <span class="comment-author">医疗工作者</span>
                                                <span class="comment-time">昨天 22:30</span>
                                            </div>
                                            <div class="comment-text">
                                                <span class="reply-author">@未来思考者</span> 确实，我们医院已经在使用AI辅助诊断系统，对早期肺癌的识别准确率比人类医生还高
                                            </div>
                                            <div class="comment-actions">
                                                <span class="comment-action reply-btn">回复</span>
                                                <span class="comment-action like-comment">点赞 (7)</span>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <div class="reply-item">
                                        <div class="comment-avatar">
                                            <i class="fas fa-laptop-code"></i>
                                        </div>
                                        <div class="reply-content">
                                            <div class="comment-header">
                                                <span class="comment-author">科技达人</span>
                                                <span class="comment-time">昨天 23:10</span>
                                            </div>
                                            <div class="comment-text">
                                                <span class="reply-author">@未来思考者</span> 医疗确实是AI应用最有前景的领域之一，峰会上有几家公司展示的医疗AI产品令人印象深刻
                                            </div>
                                            <div class="comment-actions">
                                                <span class="comment-action reply-btn">回复</span>
                                                <span class="comment-action like-comment">点赞 (5)</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <button class="view-more-comments">查看全部89条评论</button>
                </div>
            </div>
        </div>
        
        <!-- 昨日动态 -->
        <div class="date-section">
            <span class="date-label">昨日</span>
        </div>
        
        <!-- 标准布局动态 - 多图 -->
        <div class="standard-layout">
            <div class="post-card">
                <div class="post-header">
                    <div class="post-author">
                        <div class="author-avatar">
                            <i class="fas fa-tshirt"></i>
                        </div>
                        <div class="author-info">
                            <div class="d-flex align-items-center">
                                <span class="author-name">时尚博主Lily</span>
                                <button class="match-author-btn" data-author="时尚博主Lily">约会作者</button>
                            </div>
                            <span class="post-time">昨天 14:20</span>
                        </div>
                    </div>
                    <button class="post-menu">
                        <i class="fas fa-ellipsis-h"></i>
                    </button>
                </div>
                
                <div class="post-content">
                    <div class="post-text">
                        春季穿搭灵感分享，今天尝试了几种不同的搭配风格，你们最喜欢哪一套？#春季穿搭 #时尚搭配 #OOTD
                    </div>
                    
                    <div class="post-images">
                        <div class="multiple-images">
                            <div class="image-item">
                                <i class="fas fa-tshirt"></i>
                            </div>
                            <div class="image-item">
                                <i class="fas fa-user-tie"></i>
                            </div>
                            <div class="image-item">
                                <i class="fas fa-glass-cheers"></i>
                            </div>
                            <div class="image-item">
                                <i class="fas fa-running"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="post-meta">
                    <div class="meta-item">
                        <i class="far fa-eye"></i>
                        <span>浏览 4.2k</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-heart"></i>
                        <span>意向 320</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-comment"></i>
                        <span>评论 128</span>
                    </div>
                    <div class="meta-item">
                        <i class="far fa-share-square"></i>
                        <span>转发 95</span>
                    </div>
                </div>
                
                <div class="post-actions">
                    <button class="action-btn">
                        <i class="far fa-heart"></i>
                        <span>点赞 (567)</span>
                    </button>
                    <button class="action-btn">
                        <i class="far fa-comment"></i>
                        <span>评论</span>
                    </button>
                    <button class="action-btn">
                        <i class="far fa-share-square"></i>
                        <span>转发</span>
                    </button>
                    <button class="action-btn bookmarked">
                        <i class="fas fa-bookmark"></i>
                        <span>收藏</span>
                    </button>
                </div>
                
                <div class="comments-section">
                    <div class="comment-input">
                        <div class="comment-avatar">
                            <i class="fas fa-user"></i>
                        </div>
                        <div class="comment-box">
                            <textarea class="comment-input-field" placeholder="发表评论..."></textarea>
                        </div>
                    </div>
                    
                    <div class="comments-list">
                        <div class="comment-item">
                            <div class="comment-avatar">
                                <i class="fas fa-user"></i>
                            </div>
                            <div class="comment-content">
                                <div class="comment-header">
                                    <span class="comment-author">时尚追随者</span>
                                    <span class="comment-time">昨天 15:03</span>
                                </div>
                                <div class="comment-text">
                                    第三套约会风格太好看了！请问裙子是什么牌子的？
                                </div>
                                <div class="comment-actions">
                                    <span class="comment-action reply-btn">回复</span>
                                    <span class="comment-action like-comment">点赞 (42)</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <button class="view-more-comments">查看全部128条评论</button>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 点赞功能
        document.querySelectorAll('.action-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                // 点赞按钮
                if (this.querySelector('.fa-heart')) {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('.fa-heart');
                    const countSpan = this.querySelector('span');
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        // 更新点赞数
                        const count = parseInt(countSpan.textContent.match(/\d+/)[0]);
                        countSpan.textContent = `点赞 (${count + 1})`;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        // 更新点赞数
                        const count = parseInt(countSpan.textContent.match(/\d+/)[0]);
                        countSpan.textContent = `点赞 (${count - 1})`;
                    }
                }
                
                // 收藏按钮
                if (this.querySelector('.fa-bookmark')) {
                    this.classList.toggle('bookmarked');
                    const icon = this.querySelector('.fa-bookmark');
                    
                    if (this.classList.contains('bookmarked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                    }
                }
                
                // 转发按钮
                if (this.querySelector('.fa-share-square')) {
                    const postAuthor = this.closest('.post-card').querySelector('.author-name').textContent;
                    alert(`转发了 ${postAuthor} 的动态`);
                }
            });
        });
        
        // 评论功能
        document.querySelectorAll('.comment-input-field').forEach(textarea => {
            textarea.addEventListener('keypress', function(e) {
                if (e.key === 'Enter' && !e.shiftKey) {
                    e.preventDefault();
                    const commentText = this.value.trim();
                    if (commentText) {
                        const isReply = this.closest('.reply-input') !== null;
                        const commentBox = this.closest('.comment-content') || this.closest('.comments-section');
                        let targetList, newItem, authorName, placeholderText;
                        
                        // 处理回复
                        if (isReply) {
                            placeholderText = this.getAttribute('placeholder');
                            authorName = placeholderText.match(/@([^.]+)/)[1];
                            targetList = this.closest('.comment-content').querySelector('.replies-list');
                            
                            // 如果回复列表不存在则创建
                            if (!targetList) {
                                const commentContent = this.closest('.comment-content');
                                targetList = document.createElement('div');
                                targetList.className = 'replies-list';
                                commentContent.appendChild(targetList);
                            }
                            
                            newItem = document.createElement('div');
                            newItem.className = 'reply-item';
                            newItem.innerHTML = `
                                <div class="comment-avatar">
                                    <i class="fas fa-user"></i>
                                </div>
                                <div class="reply-content">
                                    <div class="comment-header">
                                        <span class="comment-author">我</span>
                                        <span class="comment-time">刚刚</span>
                                    </div>
                                    <div class="comment-text">
                                        <span class="reply-author">@${authorName}</span> ${commentText}
                                    </div>
                                    <div class="comment-actions">
                                        <span class="comment-action reply-btn">回复</span>
                                        <span class="comment-action like-comment">点赞</span>
                                    </div>
                                </div>
                            `;
                            
                            // 隐藏回复输入框
                            this.closest('.reply-input').classList.remove('active');
                        } 
                        // 处理新评论
                        else {
                            targetList = this.closest('.comments-section').querySelector('.comments-list');
                            newItem = document.createElement('div');
                            newItem.className = 'comment-item';
                            newItem.innerHTML = `
                                <div class="comment-avatar">
                                    <i class="fas fa-user"></i>
                                </div>
                                <div class="comment-content">
                                    <div class="comment-header">
                                        <span class="comment-author">我</span>
                                        <span class="comment-time">刚刚</span>
                                    </div>
                                    <div class="comment-text">
                                        ${commentText}
                                    </div>
                                    <div class="comment-actions">
                                        <span class="comment-action reply-btn">回复</span>
                                        <span class="comment-action like-comment">点赞</span>
                                    </div>
                                    
                                    <!-- 回复输入框 -->
                                    <div class="comment-input reply-input">
                                        <div class="comment-avatar">
                                            <i class="fas fa-user"></i>
                                        </div>
                                        <div class="comment-box">
                                            <textarea class="comment-input-field" placeholder="回复 @我..."></textarea>
                                        </div>
                                    </div>
                                </div>
                            `;
                        }
                        
                        // 添加新评论/回复
                        targetList.insertBefore(newItem, targetList.firstChild);
                        this.value = '';
                        
                        // 更新评论数
                        const commentCountEl = this.closest('.post-card').querySelector('.meta-item:nth-child(3) span');
                        const count = parseInt(commentCountEl.textContent.match(/\d+/)[0]);
                        commentCountEl.textContent = `评论 ${count + 1}`;
                        
                        // 为新添加的元素绑定事件
                        bindReplyEvents(newItem);
                        bindLikeEvents(newItem);
                    }
                }
            });
        });
        
        // 回复按钮事件绑定
        function bindReplyEvents(element) {
            const replyBtns = element.querySelectorAll('.reply-btn');
            replyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    // 隐藏其他所有回复输入框
                    document.querySelectorAll('.reply-input').forEach(input => {
                        input.classList.remove('active');
                    });
                    
                    // 显示当前回复输入框
                    const replyInput = this.closest('.comment-content, .reply-content').querySelector('.reply-input');
                    if (replyInput) {
                        replyInput.classList.add('active');
                        replyInput.querySelector('.comment-input-field').focus();
                    } else {
                        // 如果没有回复输入框，则创建一个
                        const commentContent = this.closest('.comment-content, .reply-content');
                        const authorName = commentContent.querySelector('.comment-author').textContent;
                        
                        const newReplyInput = document.createElement('div');
                        newReplyInput.className = 'comment-input reply-input active';
                        newReplyInput.innerHTML = `
                            <div class="comment-avatar">
                                <i class="fas fa-user"></i>
                            </div>
                            <div class="comment-box">
                                <textarea class="comment-input-field" placeholder="回复 @${authorName}..."></textarea>
                            </div>
                        `;
                        
                        commentContent.appendChild(newReplyInput);
                        newReplyInput.querySelector('.comment-input-field').focus();
                        
                        // 为新输入框绑定事件
                        newReplyInput.querySelector('.comment-input-field').addEventListener('keypress', function(e) {
                            if (e.key === 'Enter' && !e.shiftKey) {
                                // 复用上面的评论处理逻辑
                                const textareas = document.querySelectorAll('.comment-input-field');
                                textareas[textareas.length - 1].dispatchEvent(e);
                            }
                        });
                    }
                });
            });
        }
        
        // 评论点赞事件绑定
        function bindLikeEvents(element) {
            const likeBtns = element.querySelectorAll('.like-comment');
            likeBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const currentText = this.textContent;
                    const countMatch = currentText.match(/\d+/);
                    
                    if (countMatch) {
                        const count = parseInt(countMatch[0]);
                        this.textContent = `点赞 (${count + 1})`;
                    } else {
                        if (currentText.includes('已点赞')) {
                            this.textContent = '点赞';
                        } else {
                            this.textContent = '点赞 (1)';
                        }
                    }
                    
                    this.classList.toggle('liked');
                });
            });
        }
        
        // 初始绑定所有回复按钮事件
        document.addEventListener('DOMContentLoaded', function() {
            bindReplyEvents(document);
            bindLikeEvents(document);
        });
        
        // 筛选标签切换
        document.querySelectorAll('.filter-tab').forEach(tab => {
            tab.addEventListener('click', function() {
                document.querySelectorAll('.filter-tab').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
            });
        });
        
        // 约会作者按钮
        document.querySelectorAll('.match-author-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const authorName = this.getAttribute('data-author');
                alert(`已向 ${authorName} 发送约会请求！`);
                this.textContent = '已请求';
                this.classList.add('requested');
            });
        });
        
        // 查看更多评论
        document.querySelectorAll('.view-more-comments').forEach(btn => {
            btn.addEventListener('click', function() {
                alert('加载更多评论...');
            });
        });
    </script>
</body>
</html>
    
